Auto merge of #4010 - jonhoo:better-incremental-nightly-test, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 9 May 2017 15:35:20 +0000 (15:35 +0000)
committerbors <bors@rust-lang.org>
Tue, 9 May 2017 15:35:20 +0000 (15:35 +0000)
commitcf17c9f7118f544ec304ed6f50d92b3759487123
tree863ccb41a769408a7785d4295cf8744cc9981a8d
parent9bf9bddd9297cfb5098be6146d85be551c6d4eff
parent213a2bf077d834e1694ae3442e0858b931b51e97
Auto merge of #4010 - jonhoo:better-incremental-nightly-test, r=alexcrichton

Bring test of nightly in line with tests

#4000 passes `-Zincremental` to `rustc` only on nightly, but uses a different mechanism for detecting nightly than [cargotest does](https://github.com/rust-lang/cargo/blob/9bf9bddd9297cfb5098be6146d85be551c6d4eff/tests/cargotest/lib.rs#L37). This PR brings the two in line, which should hopefully fix the build failure observed in https://github.com/rust-lang/rust/pull/41830#issuecomment-300052969.